﻿using System;
using System.Runtime.Serialization;

namespace EvidenceManagement.Model
{
    [DataContract]
    [DbObject(SelectCommandText = "Designation_Select"
        , InsertCommandText = "Designation_Insert"
        , DeleteCommandText = "Designation_Delete"
        , UpdateCommandText = "Designation_Update")]
    public class Designation : IAuditable
    {
        public Designation()
        {

        }

        [DbColumn]
        [DataMember]
        public Guid DesignationID
        {
            get;
            set;
        }

        [DbColumn]
        [DataMember]
        public string Description
        {
            get;
            set;
        }

        [DbColumn]
        [DataMember]
        public string SystemDescription
        {
            get;
            set;
        }

        #region IAuditable Members

        [DbColumn]
        [DataMember]
        public Guid CreatedBy
        {
            get;
            set;
        }

        [DbColumn]
        [DataMember]
        public Guid ModifiedBy
        {
            get;
            set;
        }

        public bool IsDeleted
        {
            get;
            set;
        }

        #endregion
    }
}
